var sp = new SettingsPanel(jQuery("#settings_container"), {
	'beforeSubmit': function(event) {
		mceHandle(jQuery(event.data._view.getSettingsForm()).find('textarea.mceEditor'), event);
	},
	'beforeClose': function(event) {
		mceDisable(jQuery(event.data._view.getSettingsForm()).find('textarea.mceEditor'));
	}
});

sp.bind();

